package com.作业.Day9;

import java.util.Scanner;

public class Homework5 {
    public static void main(String[] args) {
        System.out.println("请输入字符");
        Scanner scanner = new Scanner(System.in);
        String next = scanner.next();
        int big=0;
        int small=0;
        int num=0;
        for (int i = 0; i < next.length(); i++) {
            if((next.charAt(i) >= 'A') && (next.charAt(i) <= 'Z'))
            {
               big++;
            }
            else if((next.charAt(i) >= 'a') && (next.charAt(i) <= 'b'))
            {
                small++;
            }
            else if((next.charAt(i) >= '1') && (next.charAt(i) <= '9')){
                num++;
            }
         }
        System.out.println("大写字符"+big);
        System.out.println("小写字符"+small);
        System.out.println("数字符"+num);

    }
}
